/*
 * @Author: your name
 * @Date: 2020-12-28 19:28:23
 * @LastEditTime: 2020-12-28 19:52:50
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \H5 2010 studyd:\H5 2010 练习\第三阶段 Vue + node\DAY 7\panda\vue.config.js
 */

module.exports = {
  css: {
    loaderOptions: {
      less: {
        modifyVars: {
          // 直接覆盖变量
          'nav-bar-background-color' : '#FF0000',
          'nav-bar-icon-color' : 'white',
          'nav-bar-text-color' : 'white',
          'nav-bar-title-text-color' : 'white',
          'search-background-color' : 'red',
          'search-padding' : '0px 12px',
          'search-left-icon-color': '#ccc'
        }
      }
    }
  },
  devServer: {
    open: true,
    proxy: { // 反向代理
      '/xiongmao': { // URL 以 '/xiongmao' 开头的
        target:'https://www.xiongmaoyouxuan.com',
        changeOrigin: true,
        pathRewrite: {
          '^/xiongmao': ''
        }
      }
    }
  }
}